const {ccclass, property} = cc._decorator;

@ccclass
export default class PageBase extends cc.Component {

    show () {
        this.node.active = true;
        this.onShow()
    }

    hide () {
        this.node.active = false;
        this.onHide();
    }

    onShow (...params:any[]) {
        console.log("PageBase onShow");
    }

    onHide () {
        console.log("PageBase onHide");        
    }
}
